package com.bw.eureka.jpa.controller;


import com.alibaba.fastjson.JSON;
import com.bw.common.vo.ResultVO;
import com.bw.eureka.jpa.entity.SysRegionEntity;
import com.bw.eureka.jpa.service.SysRegionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Set;

@RestController
@Slf4j
public class SysRegionController {


    @Autowired
    SysRegionService sysRegionService;
    @RequestMapping("/sysRegionList")
    public ResultVO  sysRegionList(){
        List<SysRegionEntity> all = sysRegionService.findAll();
        return ResultVO.success(all);
    }
}
